# -*- coding:utf-8 -*-
# 顺序查找

def search(list, item):
    for i in range(len(list)):
        if list[i] == item:
            return i
    return False


mylist = [12, 23, 24, 34, 45, 45, 78]
res = search(mylist, 45)
print(res)